package cn.itsource.api.openfeign;

import cn.itsource.api.fallback.LoginFallbackFactory;
import cn.itsource.constants.Constants;
import cn.itsource.pojo.ro.LoginRo;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = Constants.Remote.SERVICE_UAA,fallbackFactory = LoginFallbackFactory.class)
public interface ILoginOpenFeignClient {
    @PostMapping(Constants.Remote.PREFIX_LOGIN_REMOTE)
    public JSONResult createLogin(@RequestBody LoginRo login);
}
